package server.models;

import java.sql.Timestamp;
import java.util.Date;

import common.models.*;

public class ChatHistoryItem extends MvcModel {

	private static final long serialVersionUID = 1877826025771482463L;
	
	private Timestamp dateAndTime;
	private int sender, receiver;
	private String content;
	
	public ChatHistoryItem(int s, int r, String c) {
		dateAndTime = new Timestamp(new Date().getTime());
		sender = s;
		receiver = r;
		content = c;
	}
	
	public Date getDateAndTime() { return dateAndTime; }
	public void setDateAndTime(Date d) { dateAndTime = new Timestamp(d.getTime()); }
	
	public int getSender() { return sender; }
	public void setSender(int s) { sender = s; }
	
	public int getReceiver() { return receiver; }
	public void setReceiver(int r) { receiver = r; }
	
	public String getContent() { return content; }
	public void setContent(String c) { content = c; }
	
}
